## page velocity parameters:
## - header
## - body
## - autoPageChangeDelay
## - autoPageChangeUrl

#parse("include/html-body-open.inc.html")

#parse("include/header.inc.html")

<div class="contentMiddle, x-hidden" id="showAfterLoginCheck">
  <table height="250" border=0 align=center width="100%">
    <tr>
      <td align=center>
        <table cellspacing=3>
#if($header)
          <tr>
            <td><h1>${header}</h1></td>
          </tr>
#end

#if($body)
          <tr>
            <td>${body}</td>
          </tr>
#end
        </table>
      </td>
    </tr>
  </table>
</div>

#parse("/include/footer.inc.html")

<script type="text/javascript">
  MyApp.common.login.onReady(function () {
    Ext.get("showAfterLoginCheck").removeCls("x-hidden");
  });
</script>

#if($autoPageChangeDelay)
  #if($autoPageChangeUrl)
<script type="text/javascript">
  MyApp.common.login.onReady(function () {
    setTimeout(function () {
      document.location.replace("${autoPageChangeUrl}");
    }, parseInt("${autoPageChangeDelay}")*1000);
  });
</script>
  #else
<script type="text/javascript">
  MyApp.common.login.onReady(function () {
    setTimeout(function () {
      history.go(-1);
    }, parseInt("${autoPageChangeDelay}")*1000);
  });
</script>
  #end
#end

#parse("include/html-body-close.inc.html")